<html>
<head>
<title>Login</title>
</head>
<body>
<%
        String number = "";

	// Get page parameters
	if(request.getParameter("number") != null)
	{
	    number = request.getHeader("number");
	    if(number.startsWith("S"))
	    {
	         // Student
	   	 response.sendRedirect("student.jsp");
	    }
	    else
	    {
	    	// Instructor
	        response.sendRedirect("instructor.jsp");
	    }
	}
        else
	{
	%>
	<a href="studentLogin.jsp">Student page</a><br>
	<a href="schoolLogin.jsp">School page</a><br>
	<a href="instructorLogin.jsp">Instructor page</a>
	<%
	}
	%>

</body>
</html>
